package client.structural.adapter.ext.duplex;

import org.junit.Test;
import org.xml.sax.SAXException;
import uml.structural.adapter.ext.duplex.DuplexAdapter;
import util.bean.BeanUtil;
import util.xml.XMLUtil;

import javax.xml.parsers.ParserConfigurationException;
import java.io.File;
import java.io.IOException;

/**
 * 双向适配器--客户端<br>
 * on 2022/12/23 1:44
 */
public class Client {
    @Test
    public void t() throws ParserConfigurationException, IOException, ClassNotFoundException, InstantiationException, IllegalAccessException, SAXException {
        DuplexAdapter duplexAdapter = BeanUtil.newBean(
                DuplexAdapter.class,
                new File("src/main/resources/xml/adapter.xml"),
                "duplexAdapterName");
        duplexAdapter.targetService();
        duplexAdapter.existedService();
    }
}
